#! /bin/bash
#digit's first attempt ii audio notification. basic proof of concept.
echo "THIS IS NOT WORKING YET"
echo "enter your irc network, or enter for default [irc.libera.chat]:"
read -e -i irc.libera.chat SERV
#SERV="irc.libera.chat"

echo "enter your irc network, or enter for default [\#\#\?]:" 
read -e -i \#\#\? CHAN
#CHAN="#witchlinux"

#echo "enter the word you want highlighted, or enter for default [#witchlinux]:" 
#read -e -i NICK
NICK=somenick

######mk1
#tail -f -n 1 ~/irc/$SERV/$CHAN/out | grep --line-buffered $NICK 
#add -q to grep once working, methinks... or could re-pipe it to some kind of other notification thing, like um, zenity?  libnotify?

#, piped to the grepings and soxings, the -n 1 being the key bit to prevent over-repetitious audio notifications.


######mk2

CHAT="~/irc/$SERV/$CHAN/out"

faq1loop() {
#http://mywiki.wooledge.org/BashFAQ/001
while read -r $NICK; do
    play ~/sounds/beep.wav
done < "$CHAT"
}

#I WILL MAKE YOU BEEP!
